FROM java:8
MAINTAINER jianrui@hdvon.com

ENV PARAMS=""

VOLUME /tmp
ADD /home/seim/seim-java/seim-job/xxl_job-plume_log*.jar /apps/app.jar
ADD application.properties /apps

ENV TZ=Asia/Shanghai
Run ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

WORKDIR /apps
EXPOSE 18080
ENTRYPOINT ["sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /apps/app.jar $PARAMS"]
